package com.cindata

class Department
{
    String name		// 部门名称
    String code 	// 部门编号

    static mapping = {
        autowire true
    }

    static constraints = {
        name unique: true, size: 2..16
        code maxSize: 50, nullable: true, blank: true
    }

    String toString()
    {
        name
    }
}